#!/usr/bin/env python
# -*- coding: utf-8 -*-

__author__ = 'dong'

import re
# self.checkBoxGroup.addButton(self.obj.ui.checkBox_52_571, 571)

with open('5202.txt', 'r') as f:
    s = f.read()
    for i in s.split('\r'):
        print i
        with open('5203.txt', 'a+') as f:
            f.write('self.checkBoxGroup.addButton(self.obj.ui.checkBox_52_' + str(i) +', '+ str(i) + ')\r')